//
//  CitysViewController.h
//  OrderSeat
//
//  Created by 王威 on 14-1-10.
//  Copyright (c) 2014年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CitysViewControllerDelegate

@optional
- (void)selectedDidCity:(NSDictionary *)city;

@end

@class CitysDataSource;
@interface CitysViewController : BaseViewController

@property (weak,   nonatomic) IBOutlet UITableView *cityTable;

@property (strong, nonatomic) CitysDataSource *dataSource;
@property (assign, nonatomic) id<CitysViewControllerDelegate> delegate;
@property (strong, nonatomic) BaseViewController *parentViewController;

@end

@interface CitysDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic) CitysViewController *viewController;
@property (strong, nonatomic) NSMutableArray *cityList;
@property (strong, nonatomic) NSMutableDictionary *cityDictionary;

- (void)locationCity;
- (void)fetchCitys;

@end
